import { request } from "@umijs/max";

//登录
export const login = (params: API.UserLogin) =>
  request("administrator/login", {
    method: "POST",
    data: params,
    baseURL:'/'
  });
//登出
export const logout = () =>
  request(`administrator/logout`, {
    method: "POST",
    baseURL:'/'
  });


